#include <Servo.h> 
Servo FACE1;
Servo FACE2;
Servo FACE3;
Servo FACE4;
int x,z = 0;
void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  FACE1.attach(23);
  FACE2.attach(25);
  FACE3.attach(29);
  FACE4.attach(31);
}

void loop() {
  // put your main code here, to run repeatedly:
  if (x == 0) {
    x =1;
    FACE1.write(160);
    FACE2.write(160);
    FACE3.write(160);
    FACE4.write(160);
    delay(5000);
  }
  else if (x == 1) {
    x = 0; 
    FACE1.write(30);
    FACE2.write(30);
    FACE3.write(30);
    FACE4.write(30);
    delay(900);
  }
  delay(30);
}
